package com.qiyun.dinghuohui.utils;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.Date;

//客户端上传的参数
public class JsonParamInfoReturn {

	private boolean param_aliay_net = true;// 记录与服务器相连

	public boolean isParam_aliay_net() {
		return param_aliay_net;
	}

	public void setParam_aliay_net(boolean paramAliayNet) {
		param_aliay_net = paramAliayNet;
	}

	private boolean param_aliay = false;// 参数是否有效
	private JSONObject param;
	private String param_op = "";// 操作标识
	private String param_un = "";// 账号
	private String param_pwd = "";// 密码
	private String regionStr = "";
	private int param_ut = 0;// 用户类型
	private String param_message = "";// 判断时返回的说明内容
	private JSONObject param_json;
	// 返回的参数
	// 通讯窗口（客户端时间）
	private Date communicationsWindowClientBegin = new Date();
	private Date communicationsWindowClientEnd = new Date();

	public boolean isParam_aliay() {
		return param_aliay;
	}

	public void setParam_aliay(boolean paramAliay) {
		param_aliay = paramAliay;
	}

	public JSONObject getParam() {
		return param;
	}

	public void setParam(JSONObject param) {
		this.param = param;
	}

	public String getParam_op() {
		return param_op;
	}

	public void setParam_op(String paramOp) {
		param_op = paramOp;
	}

	public String getParam_un() {
		return param_un;
	}

	public void setParam_un(String paramUn) {
		param_un = paramUn;
	}

	public String getParam_pwd() {
		return param_pwd;
	}

	public void setParam_pwd(String paramPwd) {
		param_pwd = paramPwd;
	}

	public int getParam_ut() {
		return param_ut;
	}

	public int getParam_utByParam() {
		try {
			setParam_ut(getParam().getInt(JsonBuilder.JSON_UT));
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return param_ut;
	}

	public void setParam_ut(int paramUt) {
		param_ut = paramUt;
	}

	public String getParam_message() {
		return param_message;
	}

	public void setParam_message(String paramMessage) {
		param_message = paramMessage;
	}

	public JSONObject getParam_json() {
		return param_json;
	}

	public void setParam_json(JSONObject paramJson) {
		param_json = paramJson;
	}

	public Date getCommunicationsWindowClientBegin() {
		return communicationsWindowClientBegin;
	}

	public void setCommunicationsWindowClientBegin(
			Date communicationsWindowClientBegin) {
		this.communicationsWindowClientBegin = communicationsWindowClientBegin;
	}

	public Date getCommunicationsWindowClientEnd() {
		return communicationsWindowClientEnd;
	}

	public void setCommunicationsWindowClientEnd(
			Date communicationsWindowClientEnd) {
		this.communicationsWindowClientEnd = communicationsWindowClientEnd;
	}

	public String getRegionStr()
	{
		return regionStr;
	}

	public void setRegionStr(String regionStr)
	{
		this.regionStr = regionStr;
	}

}
